package cn.kgc83.shengyin.domain;

//import org.apache.commons.lang3.builder.ToStringBuilder;
//import org.apache.commons.lang3.builder.ToStringStyle;
//import com.ruoyi.common.annotation.Excel;
//import com.ruoyi.common.core.domain.BaseEntity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 文章对象 d_article
 * 
 * @author laoliu
 * @date 2023-08-01
 */
public class Article extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 内容 */
    private String content;

    /** 分类名 */
    //@Excel(name = "分类名")
    private String type;

    /** 分类编码，建议大写 */
    //@Excel(name = "分类编码，建议大写")
    private String typecode;

    /** 是否显示 */
    //@Excel(name = "是否显示")
    private Boolean isvalid;

    /** 是否置顶 */
    //@Excel(name = "是否置顶")
    private Integer showorder;

    /** 浏览次数 */
    //@Excel(name = "浏览次数")
    private Integer visittimes;

    /** 文章摘要 */
    //@Excel(name = "文章摘要")
    private String abstr;

    //
    /** 创建者 */
    private String createby;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;

    /** 更新者 */
    private String updateby;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatetime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public String getCreateby() {
        return createby;
    }

    public void setCreateby(String createby) {
        this.createby = createby;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getUpdateby() {
        return updateby;
    }

    public void setUpdateby(String updateby) {
        this.updateby = updateby;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setTypecode(String typecode) 
    {
        this.typecode = typecode;
    }

    public String getTypecode() 
    {
        return typecode;
    }
    public void setIsvalid(Boolean isvalid) 
    {
        this.isvalid = isvalid;
    }

    public Boolean getIsvalid() 
    {
        return isvalid;
    }
    public void setShoworder(Integer showorder)
    {
        this.showorder = showorder;
    }

    public Integer getShoworder()
    {
        return showorder;
    }
    public void setVisittimes(Integer visittimes) 
    {
        this.visittimes = visittimes;
    }

    public Integer getVisittimes() 
    {
        return visittimes;
    }
    public void setAbstr(String abstr) 
    {
        this.abstr = abstr;
    }

    public String getAbstr() 
    {
        return abstr;
    }

    @Override
    public String toString() {
        return "Article{" +
                "id=" + id +
                ", content='" + content + '\'' +
                ", type='" + type + '\'' +
                ", typecode='" + typecode + '\'' +
                ", isvalid=" + isvalid +
                ", showorder='" + showorder + '\'' +
                ", visittimes=" + visittimes +
                ", abstr='" + abstr + '\'' +
                '}';
    }
}
